package com.run.cat.dao.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author CG
 * @since 2020-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ct_user")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 注册id
     */
    @TableField("register_id")
    private Long registerId;

    /**
     * 昵称
     */
    @TableField("user_name")
    private String userName;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 性别
     */
    private String sex;

    /**
     * 星座
     */
    private String Horoscope;

    /**
     * 职业
     */
    private String job;

    /**
     * 签名
     */
    private String signature;

    /**
     * 获赞数
     */
    private Integer admire;

    /**
     * 关注度
     */
    private Integer attention;

    /**
     * 活跃度
     */
    private Integer liveness;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    @TableField(exist = false)
    private List<Image> imageList;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
